﻿<?php
// 本类由系统自动生成，仅供测试用途
class EmptyAction extends Action {
	
	//空模块空操作直接打开模板
	public function _empty() {
		$url = $_GET['_URL_'];
		
		if(is_array($url) && !empty($url)) {
			
			$file = "";
			$num = 0;
			foreach($url as $k=>$v) {
				if($k==0) {
					$file.= ($v);
				}else{
					$file.= "/".($v);
				}
				$num++;
			}
			if(strtolower($url[0])=='showcard' || strtolower($url[0])=='card' ){
			    header('location:/bizcard/detail/hash/'.$url[1]);
			    exit();
			}
			if(strtolower($url[0])=='office'){
				header('location:/Admin/Console/login');
				exit();
			}
			if($num>=2) {
				$this->display($file);
			}
		}else{
			$this->display(C("DEFAULT_MODULE").'/'.C('DEFAULT_ACTION'));
		}
		
	}
}